package com.room.mapper;

import com.room.pojo.Role;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @创建人 lin
 * @创建时间 2019/9/28
 * @描述
 */
public interface RoleMapper {

    @Delete("delete from user_role where hrid = #{uid}")
    int deleteRoleByUid(long uid);

    List<Role> roles();

    int addNewRole(@Param("role") String role, @Param("roleZh") String roleZh);

    int deleteRoleById(Long rid);
}
